<%--
  Created by IntelliJ IDEA.
  User: 24029
  Date: 23/10/2024
  Time: 下午6:31
  To change this template use File | Settings | File Templates.
--%>
<%--
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="entity.Student" %>
<%
    Student stu = (Student) request.getAttribute("stu"); // 读取参数
%>
<body>
<form action="update.do?id=<%= stu.getId() %>" method="post">
    <input type="text" name="name" value="<%= stu.getName() %>" /><br>
    <input type="radio" name="sex" value="female"
            <%= stu.getSex().equals("女") ? "checked" : "" %> />
    <label>女</label>
    <input type="radio" name="sex" value="male"
            <%= stu.getSex().equals("男") ? "checked" : "" %> />
    <label>男</label><br>
    <input type="text" name="birthday" value="<%= stu.getBirthday() %>" /><br>
    <input type="text" name="mobilephone" value="<%= stu.getMobilephone() %>" /><br>
    <input type="text" name="email" value="<%= stu.getEmail() %>" /><br>
    <input type="submit" value="保存" />
    <input type="button" value="取消" onclick="history.back();" />
</form>
</body>
--%>

